#!/usr/bin/python
#-*- coding: utf-8 -*-

import sys. os, re, string

f = open("seer/icdo3.txt", 'r')
fout = open("seer.out", 'w')

codehash = {}
subhash = {}
for line in f:
    linematch = re.search(r"([0-9]{4})\/([0-9]{1}) +(.+)$", line)
    if (linematch):
        icdcode = linematch.group(1) + linematch.group(2)
        term = string.rstrip(linematch.group(3))
        codehash[icdcode] = term
f.close()
